package com.woniuxy.creditsystem.common.mapper;

import com.woniuxy.creditsystem.common.bean.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用来处理放款管理的mapper接口
 * by汪汪
 */
@Mapper
public interface LoanMapper {
    //根据条件查询tabledata
    public List<LoansInfo> findByQuery(@Param("l") LoanQuery loanQuery);

    //根据订单编号查询详情
    public Detail findByorderid(String orderid);

    //添加还款计划表
    public void saveR(@Param("r") ReturnPlanInfo returnPlanInfo);

    //设置订单状态
    public void setStstus(@Param("orderid") String orderid,@Param("status") String status);

    //查询用户信息
    public List<UserInfo> findusers();

    //存储催收
    public void savacol(@Param("c") CollectionInfo collectionInfo);

    //uid查询还款计划表
    public List<ReturnPlanInfo> findPlanByuid(int uid);

    //改变还款计划表
    public void changeRe(@Param("r")ReturnPlanInfo returnPlanInfo);

    //查询还款计划表
    public List<ReturnPlanInfo> findAllPlans();

    //修改还款计划表已逾期
    public void setPlan(@Param("p") ReturnPlanInfo returnPlanInfo);

    //获得最大逾期天数
    public int getmaxdays(String oid);

    public void setOrder(@Param("i") OrderInfo order);
}
